import React, { memo } from 'react';
import { createFromIconfontCN } from '@ant-design/icons';

interface propsType {
    iconName: string
}

const IconFont = createFromIconfontCN({
    scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js',
});

const Icon = memo((props: propsType) => {
    const { iconName } = props
    return (
        <div>
            <IconFont type={iconName || ''} style={{ paddingRight: 10 }} {...props} />
        </div>
    )
})

export default Icon
